package com.zhaoyu.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaoyu.model.common.dtos.ResponseResult;
import com.zhaoyu.model.media.dtos.WmMaterialDto;
import com.zhaoyu.model.media.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * WmMaterial(自媒体图文素材)
 */
public interface WmMaterialService extends IService<WmMaterial> {

    ResponseResult uploadImage(MultipartFile file);

    ResponseResult findImage(WmMaterialDto wmMaterialDto);

    ResponseResult deleteImage(Integer id);

    ResponseResult updateIsCollectionById(Integer id, Short isCollection);

}